// 正确做法：不加不必要的分号
var outputStreamCreated = true 
if !outputStreamCreated { createOutputStream() }